import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 批量导入svg文件
import "@/components/svgIcon/svg";
// svgicon
import SvgIcon from "@/components/svgIcon/Index.vue"

// 路由守卫
import "./router/permit"

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 导入自定义图标
import '@/assets/fonts/iconfont.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app
.use(store)
.use(router)
.use(ElementPlus)
.component("svg-icon" , SvgIcon)
.mount('#app')